package com.xhs.hawaii.common;

import lombok.Data;

import java.io.Serializable;

/**
 * @author tangchuang
 * @version 1.0
 * @since 2018/1/23
 */
@Data
public class PageQuery implements Serializable {

    private Integer pageNum = 1;

    private Integer pageSize = 20;

    public Integer getStart() {
        return (pageNum - 1) * pageSize;
    }
}
